import request from '@/utils/request'
export default {
  getList(currentPage, pageSize, trainerQueryVo) {
    return request({
      url: `/team/search/${currentPage}/${pageSize}`,
      method: 'post',
      data: trainerQueryVo
    })
  },

  // 删除
  remove(id){
    return request({
      url: `/team/${id}`,
      method: 'delete',
    })
  },

  // 增加
  add(team){
    return request({
      url: `/team`,
      method: 'post',
      data: team
    })
  },

  // 根据ID查询
  queryById(id){
    return request({
      url: `/team/${id}`,
      method: 'get',
    })
  },
  // 编辑
  edit(team){
    return request({
      url: `/team`,
      method: 'put',
      data: team
    })
  },

  // 查询所有培训师
  queryAll(){
    return request({
      url: `/team`,
      method: 'get'
    })
  },
  // 根据团队id查找所有医生
  queryDoctorByTeamId(id){
    return request({
      url: `/team/team/doctor/${id}`,
      method: 'get'
    })
  },
  // 根据团队id查找所有服务包2
  queryPackageByTeamId2(id){
    return request({
      url: `/team/team/package2/${id}`,
      method: 'get'
    })
  },



}
